<div class="layui-form" lay-filter="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">商店名</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="name" value="{{ d.params.name || '' }}" lay-verify="required" placeholder="请输入商店名" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>


  <div class="layui-form-item">
    <label class="layui-form-label" style="width: 120px">商品图片</label>
    <script type="text/html" template>
        <div class="layui-upload">
            <button type="button" class="layui-btn" id="upload-img">
      支持多张图片
    </button>
            <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                预览图：
                <div class="file-iteme" id="showPic">
                    <input class="layui-upload-list" type="hidden" name="image" />
                </div>
            </blockquote>
        </div>
    </script>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">营业时间</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="openHours" value="{{ d.params.openHours || '' }}" lay-verify="required" placeholder="请输入营业时间" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">地址</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="address" value="{{ d.params.address || '' }}" lay-verify="" placeholder="请输入地址" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">店家风采标题</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="title" value="{{ d.params.title || '' }}" lay-verify="" placeholder="请输入店家风采标题" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>


  <div class="layui-form-item">
    <label class="layui-form-label">店家风采内容</label>
    <div class="layui-input-inline">
      <textarea id="content" style="display: none;"></textarea>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <input type="button" lay-submit lay-filter="LAY-user-back-submit" value="确认" class="layui-btn">
    </div>
  </div>
</div>

<style type="text/css">
  .layui-layedit {
    width: 890px;
  }
</style>

<script>
  layui.use(['admin', 'form', 'upload'], function () {
    var $ = layui.$
      , setter = layui.setter
      , form = layui.form
      , upload = layui.upload;

    localStorage.setItem('upimg', JSON.stringify([]));
    $("#content").blur(function () {
      var _this = $(this);
      layer.alert(_this.val());
    })

  })
</script>